package com.example.demo.controller;

import com.example.demo.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * 登录
 * <p>
 *@author zhangshuai
 *@date 2021-03-31-10-23
 *@Version 1.0
 */
@RestController
@Slf4j
@RequestMapping("login")
public class LoginController {

    @Autowired
    private LoginService loginService;

    /**
     * 登录接口
     */
    @GetMapping("login")
    public String login() {
        return loginService.login();
    }
}
